package simpleftp.ftp;

import java.io.File;

/**
 * Simple class to describe needed data from a file as Strings
 */
public class FileData {
	private String name;
	private String path;
	private String absolutePath;

	public FileData() {

	}

	public FileData(File file) {
		this.name = file.getName();
		this.path = file.getPath();
		this.absolutePath = file.getAbsolutePath();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public String toString() {
		return name;
	}
}
